﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HPIT.Shop.DTO
{
    /// <summary>
 /// 结果的状态
 /// </summary>
    public enum ResultState
    {
        Success = 1,
        Error = -1,
    }
    public class AjaxResult
    {
        public ResultState State { get; set; }
        public string ErrorMessage { get; set; }
        public AjaxResult(ResultState state, string errorMessage)
        {
            this.State = state;
            this.ErrorMessage = errorMessage;
        }
    }
}
